import time

class CLogger:
    m_fileHandler = open('mylog','w+')
    def __init__(self):
        return
        
    def __del__(self):
        m_fileHandler.close()
        return
    @staticmethod
    def writeInfLog(str):
        CLogger.m_fileHandler.write('[%s][Inf]:%s\n'%(time.asctime(time.localtime()),str))
    
    def writeWarLog(str):
        CLogger.m_fileHandler.write('[%s][War]:%s\n'%(time.asctime(time.localtime()),str))
    
    def writeErrLog(str):
        CLogger.m_fileHandler.write('[%s][Err]:%s\n'%(time.asctime(time.localtime()),str))
        